package mn.more.wits.client.dto;

import java.util.Date;

/**
 * Reference to "requirement: view available tests".  See requirement documentation for details.
 *
 * @author <a href="mailto:mike.liu@aptechmongolia.edu.mn">Mike Liu</a>
 * @version $Revision: 119 $
 */
public class ExamSummaryDTO extends DataTransferObject {

	protected void afterDeserialize() {
		// so far no need
	}

	protected void beforeSerialize() {
		// so far no need
	}

	public String getTestId() { return getData("testId"); }

	public void setTestId(String testId) { setData("testId", testId); }

	public String getTestName() { return getData("testName"); }

	public void setTestName(String testName) { setData("testName", testName); }

	public String getSubjectName() { return getData("subjectName"); }

	public void setSubjectName(String subjectName) { setData("subjectName", subjectName); }

	public int getTotalQuestions() { return getIntData("totalQuestions"); }

	public void setTotalQuestions(int totalQuestions) { setData("totalQuestions", totalQuestions); }

	public int getMaxMinutes() { return getIntData("maxMinutes"); }

	public void setMaxMinutes(int maxMinutes) { setData("maxMinutes", maxMinutes); }

	public Date getAvailableSince() { return getDateData("availableSince"); }

	public void setAvailableSince(Date availableSince) { setData("availableSince", availableSince); }

	public Date getAvailableUntil() { return getDateData("availableUntil"); }

	public void setAvailableUntil(Date availableUntil) { setData("availableUntil", availableUntil); }

	public String getComments() { return getData("comments") == null ? "" : getData("comments"); }

	public void setComments(String comments) { setData("comments", comments); }

	public String getRequiredTools() { return getData("requiredTools") == null ? "" : getData("requiredTools"); }

	public void setRequiredTools(String requiredTools) { setData("requiredTools", requiredTools); }

	public boolean isTeamwork() { return getBooleanData("teamwork"); }

	public void setTeamwork(boolean teamwork) { setData("teamwork", teamwork); }

	/** if this exam is currently in progress (for the current user) */
	public boolean isInProgress() { return getBooleanData("inProgress"); }

	/** if this exam is currently in progress (for the current user) */
	public void setInProgress(boolean inProgress) { setData("inProgress", inProgress); }
}
